package com.potenza.edu.media.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    public static final String QUEUE_NAME = "Queue_OSS_BACKUP";


    @Bean(QUEUE_NAME)
    public Queue queueDeclare(){
        return QueueBuilder.durable(QUEUE_NAME).build();
    }
}
